﻿@model IEnumerable<Model.sf>
@{
    ViewData["Title"] = "right_list";
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trasitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>角色管理</title>
    <link rel="stylesheet"
          href="../../css/table.css" type="text/css" />
    <script type="text/javascript">
        function doDelete(id) {
            if (confirm("确定删除此角色吗？")) {
                location.href = "success.html?sysRole.roleId=" + id;
            }
        }
    </script>
</head>
<body>
    <table width="100%">
        <tr>
            <td>
                <font color="black">您正在做的业务是：人力资源--权限管理--角色管理 </font>
            </td>
        </tr>
        <tr>
            <td>
                当前角色总数：8例
            </td>
        </tr>
        <tr>
            <td align="right">
                <input type="button" value="添加角色" class="BUTTON_STYLE1" onclick="location.href='right_add'">
            </td>
        </tr>
    </table>
    <table width="100%" border="1" cellpadding=5 cellspacing=1
           bordercolorlight=#848284 bordercolordark=#eeeeee
           class="TABLE_STYLE1">
        <tr class="TR_STYLE1">
            <td class="TD_STYLE1">
                角色编号
            </td>
            <td class="TD_STYLE1">
                角色名称
            </td>
            <td class="TD_STYLE1">
                角色说明
            </td>
            <td class="TD_STYLE1">
                是否可用
            </td>
            <td class="TD_STYLE1">
                操作
            </td>
        </tr>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.id)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.user_sf)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.user_ms)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.user_sfny)
                </td>   
                <td>
                    <a asp-action="right_list_information" asp-route-Id="@item.id"><img src="../../images/bt_edit.gif" title="编辑" style="cursor:pointer;" /></a>
                    <a asp-action="right_d" asp-route-Id="@item.id" onclick="return confirm('确认？')"> <img src="../../images/bt_del.gif" title="删除" style="cursor:pointer;" /></a>
                </td>
            </tr>
        }
    </table>
  
</body>

</html>

